<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:a4j="http://richfaces.org/a4j"
	xmlns:rich="http://richfaces.org/rich">
	<ui:composition template="/templates/component-sample.xhtml">
		<ui:define name="sample">
		
				<p>RichFaces Tree has a default Data Model that allows to show a simple tree without creating 
				a set on your own tree model classes. The following demo shows how to create a tree based on the
				data from the properties file.
				</p>
		
				<div class="sample-container" >
					<ui:include src="/richfaces/tree/examples/simple.xhtml"/>
					<ui:include src="/templates/include/sourceview.xhtml">
						<ui:param name="sourcepath" value="/richfaces/tree/examples/simple.xhtml"/>
						<ui:param name="openlabel" value="Open Page Source" />
					</ui:include>		
					<ui:include src="/templates/include/sourceview.xhtml">
						<ui:param name="sourcepath" value="/richfaces/tree/examples/simple-tree-data.properties"/>
						<ui:param name="openlabel" value="Open Data File" />
					</ui:include>		
					<ui:include src="/templates/include/sourceview.xhtml">
						<ui:param name="sourcepath" value="/WEB-INF/src/org/richfaces/demo/tree/SimpleTreeBean.java"/>
						<ui:param name="openlabel" value="View SimpleTreeBean.java Source" />
						<ui:param name="sourcetype" value="java" />
					</ui:include>				
				</div>
		</ui:define>
	</ui:composition>
</html>
